package com.zja.mapper;

import com.zja.pojo.Grade;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface GradeMapper {

    List<Grade> getGradeList(String gradeId,String gradeName);

    @Insert("insert into grade(gradeId,gradeName) values (#{gradeId},#{gradeName})")
    int add(String gradeId, String gradeName);

    @Delete("delete from grade where gradeId = #{gradeId}")
    int del(String gradeId);
}
